Fix bug when time_t is unsigned and as wide as intmax_t.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jun 2012 04:11:19 +0000 (21:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jun 2012 04:11:19 +0000 (21:11 -0700)
commit2259a66019920c21733da12feb494c2b4584a57d
tree77883ff5e102302a9c5a6eb4eb86247e461ee1e7
parente49beddf0ce4bd3aed9931dc77103f1f124d157c
Fix bug when time_t is unsigned and as wide as intmax_t.

* lisp.h (WAIT_READING_MAX): New macro.
* dispnew.c (Fsleep_for, sit_for):
* keyboard.c (kbd_buffer_get_event):
* process.c (Faccept_process_output):
Use it to avoid bogus compiler warnings with obsolescent GCC versions.
This improves on the previous patch, which introduced a bug
when time_t is unsigned and as wide as intmax_t.
See <http://bugs.gnu.org/9000#51>.
src/ChangeLog
src/dispnew.c
src/keyboard.c
src/lisp.h
src/process.c